const schemas = {
  "addRestApiDoc": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "id": {
            "type": "string",
            "description": "RestAPI文档入库成功编号"
          }
        },
        "required": [
          "optResult",
          "id"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "listRestApiDoc": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "apiDocs": {
            "type": "array",
            "description": "RestAPI文档信息列表",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "description": "RestAPI文档名称"
                },
                "content": {
                  "type": "object",
                  "description": "RestAPI文档内容"
                }
              },
              "required": [
                "title",
                "content"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "apiDocs"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modRestApiDoc": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getRestApiDoc": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "content": {
            "type": "object",
            "description": "RestAPI文档内容"
          }
        },
        "required": [
          "optResult",
          "content"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteRestApiDoc": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "importOpenApiDoc": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "id": {
            "type": "string",
            "description": "RestAPI文档入库成功编号"
          }
        },
        "required": [
          "optResult",
          "id"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "exportOpenApiDoc": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "content": {
            "type": "string",
            "description": "RestAPI文档内容"
          }
        },
        "required": [
          "optResult",
          "content"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "importBatchtOpenApi": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "taskIdList": {
            "description": "导入任务ID列表，任务ID为UUID",
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "required": [
          "optResult",
          "taskIdList"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "exportBatchtOpenApi": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "results": {
            "type": "array",
            "description": "RestAPI文档内容",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "description": "RestAPI文档名称"
                },
                "result": {
                  "type": "number",
                  "description": "值为0，操作成功"
                },
                "errorDesc": {
                  "type": "string",
                  "description": "导出失败的原因"
                }
              },
              "required": [
                "title",
                "result"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "results"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  }
}

export default schemas;
